﻿jQuery.extend(DateInput.DEFAULT_OPTS, {
	month_names: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
	short_month_names: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],
	short_day_names: [ "日", "一" , "二", "三", "四", "五", "六",],
	
	dateToString: function(date) {  
		var month = (date.getMonth() + 1).toString();//月份  
		var dom = date.getDate().toString();//日  
		if (month.length == 1) {
			 month = "0" + month;//控制月份为10一下的显示为01格式  
		}
		if (dom.length == 1) {
			dom = "0" + dom;//同月份  
		}
		return date.getFullYear() + "-" + month + "-" + dom;    
	}  
});